.class Lrexsee/natives/ViewStyle$21;
.super Ljava/lang/Object;
.source "ViewStyle.java"

# interfaces
.implements Landroid/view/SurfaceHolder$Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/natives/ViewStyle;->create(Lrexsee/core/browser/Browser;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lrexsee/natives/RexseeJavaView;)Lrexsee/natives/ViewTag;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private final synthetic val$browser:Lrexsee/core/browser/Browser;

.field private final synthetic val$surfaceView:Landroid/view/SurfaceView;


# direct methods
.method constructor <init>(Landroid/view/SurfaceView;Lrexsee/core/browser/Browser;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/natives/ViewStyle$21;->val$surfaceView:Landroid/view/SurfaceView;

    iput-object p2, p0, Lrexsee/natives/ViewStyle$21;->val$browser:Lrexsee/core/browser/Browser;

    .line 492
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public surfaceChanged(Landroid/view/SurfaceHolder;III)V
    .locals 6
    .param p1, "holder"    # Landroid/view/SurfaceHolder;
    .param p2, "format"    # I
    .param p3, "width"    # I
    .param p4, "height"    # I

    .prologue
    .line 495
    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v1}, Landroid/view/SurfaceView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/natives/ViewTag;

    .line 496
    .local v0, "tag":Lrexsee/natives/ViewTag;
    if-eqz v0, :cond_0

    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$browser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onJavaSurfaceChanged"

    const/4 v3, 0x5

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    iget-object v5, v0, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    const-string v5, "resized"

    aput-object v5, v3, v4

    const/4 v4, 0x2

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x3

    invoke-static {p3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x4

    invoke-static {p4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 497
    :cond_0
    return-void
.end method

.method public surfaceCreated(Landroid/view/SurfaceHolder;)V
    .locals 7
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    const-string v6, ""

    .line 500
    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v1}, Landroid/view/SurfaceView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/natives/ViewTag;

    .line 501
    .local v0, "tag":Lrexsee/natives/ViewTag;
    if-eqz v0, :cond_0

    .line 502
    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$browser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onJavaSurfaceChanged"

    const/4 v3, 0x5

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    iget-object v5, v0, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    const-string v5, "created"

    aput-object v5, v3, v4

    const/4 v4, 0x2

    const-string v5, ""

    aput-object v6, v3, v4

    const/4 v4, 0x3

    const-string v5, ""

    aput-object v6, v3, v4

    const/4 v4, 0x4

    const-string v5, ""

    aput-object v6, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 503
    iget-object v1, v0, Lrexsee/natives/ViewTag;->resumeRunnable:Ljava/lang/Runnable;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lrexsee/natives/ViewTag;->resumeRunnable:Ljava/lang/Runnable;

    invoke-interface {v1}, Ljava/lang/Runnable;->run()V

    .line 505
    :cond_0
    return-void
.end method

.method public surfaceDestroyed(Landroid/view/SurfaceHolder;)V
    .locals 7
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    const-string v6, ""

    .line 508
    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v1}, Landroid/view/SurfaceView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/natives/ViewTag;

    .line 509
    .local v0, "tag":Lrexsee/natives/ViewTag;
    if-eqz v0, :cond_0

    iget-object v1, p0, Lrexsee/natives/ViewStyle$21;->val$browser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onJavaSurfaceChanged"

    const/4 v3, 0x5

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    iget-object v5, v0, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    const-string v5, "destroyed"

    aput-object v5, v3, v4

    const/4 v4, 0x2

    const-string v5, ""

    aput-object v6, v3, v4

    const/4 v4, 0x3

    const-string v5, ""

    aput-object v6, v3, v4

    const/4 v4, 0x4

    const-string v5, ""

    aput-object v6, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 510
    :cond_0
    return-void
.end method
